package com.appbee.news.shared;

import com.appbee.core.server.requestfactory.GuiceServiceLocator;
import com.appbee.news.server.NewsService;
import com.google.web.bindery.requestfactory.shared.Request;
import com.google.web.bindery.requestfactory.shared.RequestContext;
import com.google.web.bindery.requestfactory.shared.Service;

@Service(value=NewsService.class,locator=GuiceServiceLocator.class)
public interface NewsServiceRequest extends RequestContext
{
	public Request<NewsListResultProxy> findByRange(int start,int size);
	
	public Request<Integer> totalSize();
	
	public Request<NewsListResultProxy> publish(NewsProxy news,int size);

	public Request<NewsListResultProxy> removeAndFindByRange(NewsProxy news,int start,int size);
}
